# -*- coding: utf-8 -*-
#模型下载
import logger
logger=logger.logger
from modelscope import snapshot_download
from pathlib import Path
def load_bert():
    if Path('./model/bert/bert-base-chinese').exists():
        logger.info('bert-base-chinese has been downloaded')
        return
    model_dir = snapshot_download('google-bert/bert-base-chinese',
                                  local_dir='./model/bert/bert-base-chinese')
    logger.info(model_dir)

